import http from '@/http'
class Services {
  getCaptchaId() { // 获取验证码id
    return http({
      url: 'user/captcha',
      method: 'GET'
    })
  }

  logout() { // 登出
    return http({
      url: 'user/logout',
      method: 'POST'
    })
  }

  getResouces(params) { // 获取当前角色的所有资源
    return http({
      url: 'user/resources',
      method: 'GET',
      params
    })
  }

  getProfile() { // 获取当前登录账户信息
    return http({
      url: 'user/profile',
      method: 'GET'
    })
  }
}
export default new Services()
